package com.semidata.trp.monitor.log;

import com.semidata.rtd.core.log.DebugLogHandler;
import com.semidata.rtd.core.log.ErrorLogHandler;
import com.semidata.rtd.core.log.LogService;
import com.semidata.trp.monitor.config.Config;


public class MonitorLogService extends LogService {
    
    private static final Config config = Config.getConfig();

    public MonitorLogService() {
        super(config.getLogRoot());

        registerLogEventHandler(ErrorLogHandler.NAME, ErrorLogHandler.class);
        registerLogEventHandler(MonitorLogHandler.NAME, MonitorLogHandler.class);
        if (config.isLogDebugEnabled())
            registerLogEventHandler(DebugLogHandler.NAME, DebugLogHandler.class);
    }
    
}
